/**************************************************************************//**
* @file     sys_ext.h
* @version  V1.00
* $Revision: 6 $
* $Date: 15/06/12 9:25a $
* @brief    NUC970 SYS driver header file
*
* @note
* SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2015 Nuvoton Technology Corp. All rights reserved.
*****************************************************************************/

#ifndef __SYS_EXT_H__
#define __SYS_EXT_H__

#ifdef __cplusplus
extern "C"
{
#endif

#include "sys.h"

extern sys_pvFunPtr sysIrqHandlerTable[];
extern sys_pvFunPtr sysFiqHandlerTable[];

#define sys_irq_vect sysIrqHandlerTable
#define sys_fiq_vect sysFiqHandlerTable

/* IRQn_Type dis or en */
#define sys_isr_dis   sysDisableInterrupt
#define sys_isr_en    sysEnableInterrupt

#define sys_aic_init                       sysInitializeAIC
#define sys_except_isr_install             sysInstallExceptionHandler

#define sys_fiq_vect_set                   sysInstallFiqHandler
#define sys_irq_vect_set                   sysInstallIrqHandler

#define sys_isr_install                    sysInstallISR
#define sys_isr_prio_set                   sysSetInterruptPriorityLevel


#ifdef __cplusplus
}
#endif


#endif //__SYS_EXT_H__

/*** (C) COPYRIGHT 2015 Nuvoton Technology Corp. ***/

